//
//  AELabel.h
//  GameJam-Mac
//
//  Created by Clover Sin on 12/28/11.
//  Copyright (c) 2011 Snow Poem Society. All rights reserved.
//

#ifndef GameJam_Mac_AELabel_h
#define GameJam_Mac_AELabel_h

#include "AEControl.h"

class AELabel : public AEControl
{
public:
    
    AELabel(AEControl* parent, AETheme* theme);
    virtual ~AELabel();
    
    // Reimplemented methods. 
    
    virtual void prepareForAddingToWorld();
    
    virtual void setControlPosition(Vector2 pos);
    
    // Feature methods.
    
    /** 
     * Set the text displayed on the button.
     * 
     * @param text The text you want the button to show.
     */
    void setText(const String& text);
    
    /** 
     * Get the text on this button. 
     * 
     * @reture Return text.
     */
    String getText();
    
protected:
    
    String _text;
    
    TextActor* _textActor;
    
    void syncPositionOfText();
    
};

#endif
